package com.zxw.controller;

import com.netflix.discovery.DiscoveryManager;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author zxw
 * @date 2020/8/20 14:15
 */
//@RestController
//@RequestMapping("/eureka")
public class EurekaController {
    @RequestMapping(value = "/offline", method = RequestMethod.GET)
    public void offLine() {
        DiscoveryManager.getInstance().shutdownComponent();
    }
}
